class foo { public bar:{id:number;}[] = [{id:1}, {id:2}]; }